﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;

using System.Linq;

using ProjectBase.Core;
using ProjectBase.Data;

using $prjsn$.Common.Data.Services;
using $prjsn$.Entity;
using $prjsn$.Entity.Services;

namespace $safeprojectname$.Services
{
    public class ArticleGroupDao : CodeListTinyDao<ArticleGroup>, IArticleGroupDao
    {
        public override ArticleGroup Add(ArticleGroup entity)
        {
            return base.Add(entity); // code contracts suggestion
        }

        /// <summary>Evaluates all filters and order-by clauses, paging</summary>
        public override IEnumerable<ArticleGroup> Find(CodeListFilter filter)
        {
            Criteria.Append(Apply(filter));

            return GetListByCriteria(filter);
        }
    }
}